<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
		<title>鑫三强智能消费系统</title>
		<script type="text/javascript" src="js/jquery-2.1.0.js"></script>
      	<script type="text/javascript" src="js/layer/layer.js"></script>
      	<script type="text/javascript" src="js/util.js"></script>
      	<script type="text/javascript" src="sysset.js"></script>
      	
      	<link rel="stylesheet" href="css/bootstrap.min.css">
		<link rel="stylesheet" href="css/style.css"> 
	</head>
	
	<body class="index_bg">
		<div class="il_body">
			<div class="il_body_header clearfix">
				<a href="javascript:backUp();">返回</a>
			</div>
			<div class="il_body_list clearfix">
				<a class="btn_sys" href="javascript:to_tx_config();">通讯服务器设置</a>
				<a class="btn_sys" href="javascript:to_pos_config();">设备参数设置</a>
				<a class="btn_sys" href="javascript:to_sys_pwd();">系统密码</a>
				<a class="btn_sys" href="javascript:to_readCardType();">卡识别模式</a>
				<a class="btn_sys" href="javascript:to_printer();"> 打印机编码设置</a>
				<a class="btn_sys" href="javascript:to_consumeMode();">消费模式设置</a>
				
				<a class="btn_sys" href="javascript:to_sysInfo();">系统信息查看</a>
				
				<a class="btn_sys" href="javascript:to_setUI();">界面设置</a>
				
				<!--
					
					
					<a class="btn_sys" href="javascript:toShowControl();">app控件demo</a>
                	<a class="btn_sys" href="javascript:fmTest();">蜂鸣测试</a>
					<a class="btn_sys" href="javascript:toPrint();">打印机测试</a>
					<a class="btn_sys" href="javascript:toNfc();">NFC M1卡测试</a>
                -->
				
				
			</div>
		</div>
		

		<div id="tx_set" style="display:none" >
			<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr>
							<td width="15%" style="text-align: left;padding-left: 30px;">服务器1：</td>
							<td></td>
						</tr>
						<tr>
							<td width="15%">上位机IP：</td>
							<td width="35%" style="padding: 10px 0;">
								<input type="text" id="serverIp1" style="width:250px;" value=""/>
							</td>
							<td width="15%">上位机端口：</td>
							<td width="35%">
								<input type="number" id="serverPort1" style="width:250px;" value=""/>
							</td>
						</tr>
						<tr>
							<td width="15%" style="text-align: left;padding-left: 30px;">(备用,可选)</td>
							<td></td>
						</tr>
						<tr>
							<td width="15%">上位机IP2：</td>
							<td width="35%" style="padding: 10px 0;">
								<input type="text" id="serverIp2" style="width:250px;" value=""/>
							</td>
							<td width="15%">上位机端口2：</td>
							<td width="35%">
								<input type="number" id="serverPort2" style="width:250px;" value=""/>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitTx();" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closeTx();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	<div id="posconfig" style="display:none" >
      		<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr >
							<td width="35%">&nbsp;</td>
							<td width="65%">
								<span id="postip" style="display: none;">信息已经过期或者失效,请重新配置</span>
							</td>
						</tr>
						<tr>
							<td width="35%">逻辑号：</td>
							<td width="65%" style="padding: 10px 0;">
								<input type="number" id="posno" style="width:270px;"/>
							</td>
						</tr>
						<tr>
							<td width="35%">窗口号：</td>
							<td width="65%" style="padding: 10px 0;">
								<input type="number" id="winno" style="width:270px;"/>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitPosConfig();" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closePosConfig();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	
		<div id="syspwd" style="display:none" >
			<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr>
							<td width="35%"><font color="red">*</font>原密码：</td>
							<td width="65%" style="padding: 10px 0;">
								<input type="number" id="old_pwd" style="width:270px;"/>
							</td>
						</tr>
						<tr>
							<td><font color="red">*</font>新密码：</td>
							<td style="padding: 10px 0;">
								<input type="number" id="new_pwd" style="width:270px;"/>
							</td>
						</tr>
						<tr>
							<td><font color="red">*</font>确认新密码：</td>
							<td style="padding: 10px 0;">
								<input type="number" id="confirm_pwd" style="width:270px;"/>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitSysPwd();" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closeSysPwd();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	
      	<div id="cardMode" style="display:none" >
      		<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr>
							<td width="100%" style="text-align: center;">
								<input id="item0" type="radio" value="0" name="cardModeChoose" class="inputR"/>
								<label for="item0" style="font-size: 22px;">ID卡(物理号)</label>
							</td>
						</tr>
						<tr>
							<td width="100%" style="text-align: center;font-size: 18px;">
								<input id="item1" type="radio" value="1" name="cardModeChoose" class="inputR"/>
								<label for="item1" style="font-size: 22px;">M1卡(物理号和逻辑号)</label>
							</td>
						</tr>
						<tr>
							<td width="100%" style="text-align: center;font-size: 18px;">
								<input id="item2" type="radio" value="2" name="cardModeChoose" class="inputR"/>
								<label for="item2" style="font-size: 22px;">CPU卡</label>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitCardMode()" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closeCardMode();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	
      	<div id="printCode" style="display:none" >
      		注：针对不同版本POS机器，默认的打印机编码不同而设置,默认编码GB2312(2016内核)</br>
      			可使用“测试打印”，来测试机器应该使用的打印编码
      		
			<div style="height:200px;width: 900px;">
				
				<div  style="height: 150px;width: 350px;float:left;background-color:gray;text-align: center;" onclick="chosePrintCode('0');" id="chosePrintCodeDiv0">
					
						<div style="font-size: xx-large;">
							GB2312
						</div>
						<div style="margin-top: 10px;">
							
							 <a href="javascript:printTest('0');" style="width: 150px;height: 60px;line-height: 60px;text-align: center;background-color: #009F95;font-size: 20px;display:inline-block">测试打印</a>	
						</div>
						  
					
				</div>
				
				<div  style="height: 150px;width: 350px;background-color:gray;float: left;margin-left: 50px; text-align: center;" onclick="chosePrintCode('1');"  id="chosePrintCodeDiv1">
					
						<div style="font-size: xx-large;">
							Unicode
						</div>
						<div>
							 <a href="javascript:printTest('1');"  style="width: 150px;height: 60px;line-height: 60px;text-align: center;background-color: #009F95;font-size: 20px;display:inline-block">测试打印</a>	
						</div>
						
					
				</div>
				
			</div>
			<div style="margin-top: 50px;text-align: center;">
				<a href="javascript:submitPrintCode();" class="btn_all" >确定</a>	
				<a href="javascript:closePrintCode();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	

      	
      	
      	
      	<div id="sysInfo" style="display:none" >
      		<div class="dif_table">
      			<table border="1" bordercolor="#666666">
      				<tbody>
      					<tr>
      						<td rowspan="2" align="center">上位机信息</td>
      						<td>上位机(主)信息:</td>
      						<td><span id="oneServer"></span></td>
      					</tr>
      					<tr>
      						<td>上位机(备)信息:</td>
      						<td><span id="twoServer"></span></td>
      					</tr>
      					<tr>
      						<td rowspan="2" align="center">设备信息</td>
      						<td>设备逻辑号:</td>
      						<td><span id="setPosno"></span></td>
      					</tr>
      					<tr>
      						<td>设备窗口号:</td>
      						<td>
      							<span id="setWinno"></span>
      						</td>
      					</tr>
      					<tr>
      						<td rowspan="4" align="center">消费相关设置</td>
      						<td>卡识别模式:</td>
      						<td><span id="setReadMode"></span></td>
      					</tr>
      					<tr>
      						<td>打印机中文编码:</td>
      						<td><span id="setPrintcode"></span></td>
      					</tr>
      					<tr>
      						<td>消费后打印发票设置:</td>
      						<td><span id="setNeedPrint"></span></td>
      					</tr>
      					<tr>
      						<td>消费验证密码模式:</td>
      						<td><span id="setValidePwd"></span></td>
      					</tr>
      				</tbody>
      			</table>
      			
      		</div>
      		
			<div style="margin-top: 16px;text-align: center;">
				
				<a href="javascript:closeSysInfo();" class="btn_all">关闭</a>	
			</div>
      	</div>
      	
      	
      	
      	<div id="consumeMode" style="display:none" >
      		
      		<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr>
							<td width="35%">打印发票设置：</td>
							<td width="65%" style="padding: 10px 0;">
								<select id="printCodeSel">
									<option value="0">不打印发票</option>
									<option value="1">打印1张发票</option>
									<option value="2">发票2张发票</option>
								</select>
							</td>
						</tr>
						<tr>
							<td width="35%">消费密码验证方式：</td>
							<td width="65%" style="padding: 10px 0;">
								<select id="consumePwdSel">
									<option value="0">密文验证</option>
									<option value="1">明文验证</option>
								</select>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitConsumeMode();" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closeConsumeMode();" class="btn_all">关闭</a>	
			</div>
			
			
      	</div>
      	
      	
      	
      	
      	<div id="uiSetDiv" style="display:none" >
      		
      		<div class="pt_body_list_table">
				<table border="0">
					<tbody>
						<tr>
							<td width="25%">首页标题：</td>
							<td width="75%" style="padding: 10px 0;">
								<input type="text"  value="" id="sys_title"  />
							</td>
						</tr>
						<tr>
							<td width="25%">打印发票标题：</td>
							<td width="75%" style="padding: 10px 0;">
								<input type="text"  value="" id="print_title"  />
							</td>
						</tr>
						
					</tbody>
				</table>
			</div>
			<div class="ib_rp_body_func">
				<a href="javascript:submitUIset();" class="btn_all"  style="margin-right: 20px;">确定</a>	
				<a href="javascript:closeUIset();"  class="btn_all">关闭</a>	
			</div>
			
			
      	</div>
      	
      	
	</body>
</html>